package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PersonMessage;
import cn.wolfcode.trip.base.query.PersonMessageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PersonMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PersonMessage record);

    PersonMessage selectByPrimaryKey(Long id);

    List<PersonMessage> selectAll();

    int updateByPrimaryKey(PersonMessage record);

    List<PersonMessage> queryLsit(@Param("targetId") Long targetId, @Param("state") int state);

    void changeState(@Param("state") int state, @Param("targetId") Long targetId);
}